package com.iot.ig.mqtt.config;

import com.iot.ig.common.Constants;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
public class MqttClient {

    @Value("${mqtt.host}")
    private String host;

    @Value("${mqtt.clientId}")
    private String clientId;

    @Value("${mqtt.username}")
    private String username;

    @Value("${mqtt.password}")
    private String password;

    @Value("${mqtt.topic}")
    private String topic = Constants.MQTT_DEFAULT_TEST_TOPIC;

    @Value("${mqtt.qos}")
    private int qos;

    @Value("${mqtt.timeout}")
    private int timeout;
}
